import request from '@/util/request.js'
export function getTest() {
	return request({
		url: '/goods/getAllGoods',
		method: 'GET',
		//params: query
	})
}
export function postTest(data) {
	return request({
		url: '/test1',
		method: 'POST',
		data: data
	})
}
export function sendMessage(data) {
	return request({
		url: '/mqtt/mqtt/send',
		method: 'POST',
		data: data
	})
}

export function subscribe(data) {
	return request({
		url: '/mqtt/mqtt/subscribe',
		method: 'POST',
		data: data
	})
}

export function unsubscribe(data) {
	return request({
		url: '/mqtt/mqtt/unsubscribe',
		method: 'POST',
		data: data
	})
}

export function byid(gid) {
	return request({
		url: '/test/byId',
		method: 'GET',
		data: {id: gid}
	})
}
